<template>
  <a-card :bordered="false">
    <!-- 查询区域 -->
        <div class="table-page-search-wrapper">
          <a-form layout="inline" @keyup.enter.native="searchQuery">
            <a-row :gutter="24">
    
              <a-col :xl="6" :lg="7" :md="8" :sm="24">
                <a-form-item label="类型">
                  <j-dict-select-tag  v-model="queryParam.type" title="类型" dictCode="filmsType" />
                </a-form-item>
              </a-col>
              <a-col :xl="6" :lg="7" :md="8" :sm="24">
                <a-form-item label="序列">
                 <j-dict-select-tag  v-model="queryParam.serial" title="序列" dictCode="carSerial" />
                </a-form-item>
              </a-col>
            
              <a-col :xl="6" :lg="7" :md="8" :sm="24">
                <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
                  <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
                  <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
                 
                </span>
              </a-col>
    
            </a-row>
          </a-form>
        </div>
   
    <!-- table区域-begin -->
    <div>
      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        class="j-table-force-nowrap"
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        @change="handleTableChange">

        <span slot="action" slot-scope="text, record">
          <a @click="handleEdit(record)">编辑</a>
        </span>

      </a-table>
    </div>
    <!-- table区域-end -->

    <!-- 表单区域 -->
    <carFilms-Model ref="modalForm" @ok="modalFormOk"></carFilms-Model>
  </a-card>
</template>

<script>
  import '@/assets/less/TableExpand.less'
  import CarFilmsModel from './modules/CarFilmsModel'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'

  export default {
    name: "CarFilmsList",
    mixins:[JeecgListMixin],
    components: {
      CarFilmsModel
    },
    data () {
      return {
        description: '车衣管理页面',
        // 表头
        columns: [
          {
            title: '#',
            dataIndex: '',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
           },
          {
            title: '类型',
            align:"center",
            dataIndex: 'typeText'
           },
          {
            title: '序列',
            align:"center",
            dataIndex: 'serialText'
           },
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            scopedSlots: { customRender: 'action' },
          }
        ],
      url: {
          list: "/mpMini/carFilms/list",
       },
    }
  },
  computed: {
    
  },
    methods: {
     
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
</style>